<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <link rel="apple-touch-icon" sizes="76x76" href="./assets/img/favicon.ico">
    <link rel="icon" type="image/png" href="./assets/img/favicon.ico">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>Anchor Bootstrap 4.1.3 UI Kit by WowThemesNet</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport'/>

    <!-- Google Font -->
    <link href="https://fonts.googleapis.com/css?family=Nunito:300,300i,400,600,800" rel="stylesheet">

    <!-- Font Awesome Icons -->
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">

    <!-- Main CSS -->
    <link href="./assets/css/main.css" rel="stylesheet"/>

    <!-- Animation CSS -->
    <link href="./assets/css/vendor/aos.css" rel="stylesheet"/>

</head>

<body>

<!------------------------------------------
NAVBAR:不用改
------------------------------------------->

<!------------------------------------------
HEADER
------------------------------------------->
<div class="jumbotron jumbotron-lg jumbotron-fluid mb-3 bg-primary position-relative">
    <div class="container text-white h-100 tofront">
        <div class="row align-items-center justify-content-center text-center">
            <div class="col-md-10">
                <!-- thymeleaf语法:渲染文章题目 -->
                <h1>云服务器快速构建WordPress博客</h1>
            </div>
        </div>
    </div>
</div>



<div class="container  pt-5 pb-5" data-aos="fade-up">
    <div class="row justify-content-center">
        <div class="col-md-8 mt-20">
            <article>
                <!-- 此处渲染标题 -->
                <h1><strong>Bold title</strong> for your paragraph</h1>
<!--                <p th:text="${article.content}">Welcome to BeiJing!</p>-->
                <tbody>
                    <td><h3 id="toc_0" style="font-size: 16px; font-weight: bold; line-height: 1.5; margin-top: 10px; margin-right: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: 微软雅黑, 宋体, Arial;">引子</h3><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px; font-family: 微软雅黑, 宋体, Arial; font-size: 15px;">最近搞了一个博客，采用WordPress搭建的，其实本来就依托<a href="https://www.cnblogs.com/leechenxiang/" style="color: rgb(70, 70, 70);">cnblog</a>和公众号（风间影月）更新博文，想想自己搞一个会更好一些，独立一些，而且可以配置独立域名和主体，随之就搞了一下。当然后续也是多站点发布。</p><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px; font-family: 微软雅黑, 宋体, Arial; font-size: 15px;">那么我采用的是腾讯云，之前有活动1200搞了一台2核4g5m的机子，3年的，这段期间随便用。等差不多过期了可以降低配置从而降低费用，3年后的续费那是相当贵啊。∂<br><img src="https://img2018.cnblogs.com/blog/841496/202003/841496-20200313083836021-1292633686.jpg" alt="" style="height: auto; max-width: 100%; margin: 10px; width: 1576px;"></p><h3 id="toc_1" style="font-size: 16px; font-weight: bold; line-height: 1.5; margin-top: 10px; margin-right: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: 微软雅黑, 宋体, Arial;">安装WordPress</h3><ul style="list-style: none; margin-right: 0px; margin-bottom: 0px; margin-left: 30px; padding: 0px; font-family: 微软雅黑, 宋体, Arial; font-size: 15px;"><li style="list-style-type: disc;"><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px;">安装WordPress有两种方式，第一种是自己搭建环境，有些繁琐，而且要配置php环境，哥不会搞。所以采用第二种方式，也就是云市场，如下点击重装系统：</p><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px;"><img src="https://img2018.cnblogs.com/blog/841496/202003/841496-20200313083836054-60297607.jpg" alt="" style="height: auto; max-width: 100%; margin: 10px; width: 207px;"></p></li><li style="list-style-type: disc;"><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px;">然后选择你要装的软件内容：<br><img src="https://img2018.cnblogs.com/blog/841496/202003/841496-20200313083836286-1305813808.jpg" alt="" style="height: auto; max-width: 100%; margin: 10px; width: 815px;"><br>在这里我推荐使用centos7，因为如果你以后想装docker，可以用，而上面那个是centos6的。可惜centos7用的是apache服务器而不是nginx。这个自己决定就行。另外WordPress版本比较老，这个可以自己后续升级都行，我目前已经升级到了最新的了。</p></li><li style="list-style-type: disc;"><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px;">重装好以后，就能通过你的公网ip直接访问了，访问内容如下：<br><img src="https://img2018.cnblogs.com/blog/841496/202003/841496-20200313083836118-206170678.jpg" alt="" style="height: auto; max-width: 100%; margin: 10px; width: 713px;"><br>填好信息安装即可。</p></li><li style="list-style-type: disc;"><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px;">如果提示你填入数据库相关信息，则参考如下：<br><img src="https://img2018.cnblogs.com/blog/841496/202003/841496-20200313083836239-1353847386.jpg" alt="" style="height: auto; max-width: 100%; margin: 10px; width: 709px;"></p></li><li style="list-style-type: disc;"><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px;">安装成功以后就可以发文章访问了：<br><img src="https://img2018.cnblogs.com/blog/841496/202003/841496-20200313083836286-1210660491.jpg" alt="" style="height: auto; max-width: 100%; margin: 10px; width: 1726px;"></p></li></ul><h3 id="toc_2" style="font-size: 16px; font-weight: bold; line-height: 1.5; margin-top: 10px; margin-right: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: 微软雅黑, 宋体, Arial;">域名解析</h3><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px; font-family: 微软雅黑, 宋体, Arial; font-size: 15px;">添加解析记录就行，我这里用的二级域名，如果用一级域名需要备案后再解析就行。<br><img src="https://img2018.cnblogs.com/blog/841496/202003/841496-20200313083836053-1350822605.jpg" alt="" style="height: auto; max-width: 100%; margin: 10px; width: 1053px;"></p><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px; font-family: 微软雅黑, 宋体, Arial; font-size: 15px;">最后不要忘记，在你的博客admin设置中，把如下两个url改成你的域名即可：<br><img src="https://img2018.cnblogs.com/blog/841496/202003/841496-20200313083836053-1058904287.jpg" alt="" style="height: auto; max-width: 100%; margin: 10px; width: 643px;"></p><h3 id="toc_3" style="font-size: 16px; font-weight: bold; line-height: 1.5; margin-top: 10px; margin-right: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: 微软雅黑, 宋体, Arial;">关于主题</h3><p style="margin-top: 10px; margin-right: auto; margin-left: auto; line-height: 24px; font-family: 微软雅黑, 宋体, Arial; font-size: 15px;">我现在还没有主题，这是默认的，所以比较丑，等后续博文内容多了，或者迁移的多了，再设置主题也不迟。关于主题我还是建议去购买正版或者使用免费开源的，使用盗版的可能会被追责，一两百的东西没必要搞盗版那么麻烦。</p></td>
                </tbody>
            </article>
        </div>
    </div>
</div>
<!-- End Main -->
<!--------------------------------------
JAVASCRIPTS:不用改
--------------------------------------->
<!-- CDN 引入vue 和 axios -->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="./assets/js/vendor/jquery.min.js" type="text/javascript"></script>
<script src="./assets/js/vendor/popper.min.js" type="text/javascript"></script>
<script src="./assets/js/vendor/bootstrap.min.js" type="text/javascript"></script>
<script src="./assets/js/functions.js" type="text/javascript"></script>

<!-- Animation -->
<script src="./assets/js/vendor/aos.js" type="text/javascript"></script>
<noscript>
    <style>
        *[data-aos] {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
        }
    </style>
</noscript>
<script>
    AOS.init({
        duration: 700
    });
</script>

<script type="module">
    import { onMounted, ref } from 'vue'
    import request from '@/utils/request.js'
    defineProps({
        data: {
            type: Array,
            required: true
        }
    })
    //获取数据
    const blogs = ref([])
    const getData = async () => {
        let res = await request({
            url: '/article/2/1',
            method: 'GET'
            //data: { content: '好' }
        })
        console.log('res:', res)
        blogs.value = res.rows
        console.log('blogs', blogs)
    }

    onMounted(() => {
        getData(),
            console.log("'blogs', blogs")
    })
</script>

<!-- Disable animation on less than 1200px, change value if you like -->
<script>
    AOS.init({
        disable: function () {
            var maxWidth = 1200;
            return window.innerWidth < maxWidth;
        }
    });
    // $(document).ready(function () {
    //
    //     if(location.href.indexOf("#reloaded")==-1){
    //         location.href=location.href+"#reloaded";
    //         location.reload();
    //     }
    // })
    if (location.href.indexOf("#reloaded") == -1) {
        location.href = location.href + "#reloaded";
        location.reload();
    };
</script>

</body>
</html>